package com.wen.springbootorderrabbitmqproducer.config;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DirectConfig {

//    @Bean
//    public DirectExchange directExchange(){
//        return new DirectExchange("direct_order_exchange",true,false);
//    }
//
//    @Bean
//    public Queue smsQueue(){
//        return new Queue("sms_direct_queue",true);
//    }
//    @Bean
//    public Queue duanxinQueue(){
//        return new Queue("duanxin_direct_queue",true);
//    }
//    @Bean
//    public Queue emailQueue(){
//        return new Queue("email_direct_queue",true);
//    }
//
//
//    @Bean
//    public Binding smsBinding(){
//        return BindingBuilder.bind(smsQueue()).to(directExchange()).with("sms");
//    }
//    @Bean
//    public Binding duanxinBinding(){
//        return BindingBuilder.bind(duanxinQueue()).to(directExchange()).with("duanxin");
//    }
//    @Bean
//    public Binding emailBinding(){
//        return BindingBuilder.bind(emailQueue()).to(directExchange()).with("email");
//    }

}
